import time
import datetime
import sys

FILENAME = 'DATE.DAT'
f = file(FILENAME, 'a')

#start date
d1 = datetime.date(2009, 1, 1)

#end date 
d2 = datetime.date(2009, 12, 31)

num =  (d2 - d1).days
start_date = datetime.date(2009, 1, 1)

j = 3
for i in range(0, num+1):
    j = j + 1
    if j == 6:
        continue
    elif j ==5:
        continue
    elif j ==7:
        j=0
        continue
    d = start_date + datetime.timedelta(days = 1*i)
    #string = "%s-%s-%s\n" % (d.year, d.month, d.day)
    string  = d.isoformat() + "\n"
    f.write(string)
    
f.close()


